require('./style/less.less');
require('./style/index.css');



import Vue from 'vue'
import VueRouter from 'vue-router'
import Header from './components/header.vue'
import Main from './components/main.vue'
import Footer from './components/footer.vue'


Vue.use(VueRouter);


const routes = [  
    { path: '/', component: Header },  
    { path: '/fa', component: Footer },
    { path: '/fb', component: Main }
];  
// 3. 创建 router 实例，然后传 `routes` 配置  
// 你还可以传别的配置参数, 不过先这么简单着吧。  
const router = new VueRouter({ routes:routes });  


new Vue({
	el:'body',
	data:{
		title:fa
	},
	router,
	components:{
		vheader:Header,
		vmain:Main,
		vfooter:Footer
	}
})
